package com.itggm.controller;


import com.itggm.DTO.LogInfoPageDTO;
import com.itggm.response.ResponseResult;
import com.itggm.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

 /**
  * @Author: ggm
  * @date:  2024/11/24
  */

@RestController
@RequestMapping("log")
public class LogInfoController {


    @Autowired
    private LogInfoService logInfoService;


    // 分页
    @GetMapping("page")
    public ResponseResult logInfoPage(LogInfoPageDTO logInfoPageDTO){

      return   logInfoService.logInfoPage(logInfoPageDTO);
    }

    @PostMapping("delete")
    public ResponseResult  deleteLogInfo(@RequestBody List<Integer> ids){

        return   logInfoService.deleteLogInfo(ids);
    }



}
